<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

//use Yii;
use yii\helpers\Html;
//use yii\helpers\Url;
use yii\bootstrap\ActiveForm;
use backend\controllers\CategoryController;
use common\models\category\Category;
use common\models\setting\Setting;




?>

<?php 
    $data = Category::find()->where(['status' => 1, 'parent_id' => 0])->asArray()->all();
    //网站后台logo
    $wang = '';
    try { $wang = Setting::findOne(['code'=>'wang'])->value;}
    catch(ErrorException $e){ }
?>

    <div id="Header">
         <img src="/upload/<?= $wang; ?>" />
         <div class="Title">
            <?php 
            $action = yii::$app->controller->action->id;
            if($action=="signup")
            {
                echo "欢迎注册";
            }
            elseif($action=="login")
            {
                echo "欢迎登录";
            }
            else
            {
                echo "找回密码";
            }
         ?></div>
         <div style="clear:both"></div>
    </div>